
export default {
    '/api/users': [
        {admin: "admin"},
        {user1: "user1"},
    ],
    'post /api/getUserMenus': {
        code: 0,
        msg: "admin菜单",
        data: [{
            name: "金融账户",
            icon: "medicine-box",
            path: "/account",
            children: [{
                name: "储蓄卡",
                icon: "rocket",
                path: "/account/debit",
                exact: true,
            }, {
                name: "信用卡",
                icon: "rocket",
                path: "/account/credit",
            }, {
                name: "预付卡",
                icon: "rocket",
                path: "/account/prepay"
            }]
        }, {
            name: "资金管理",
            icon: "medicine-box",
            path: "/fortune",
            children: [{
                name: "现金",
                icon: "rocket",
                path: "/fortune/cash",
                exact: true,
            }, {
                name: "理财",
                icon: "rocket",
                path: "/fortune/invest",
            }, {
                name: "基金",
                icon: "rocket",
                path: "/fortune/fund"
            }, {
                name: "股票",
                icon: "rocket",
                path: "/fortune/stock"
            }]
        }, {
            name: "固定资产",
            icon: "medicine-box",
            path: "/fixed",
            children: [{
                name: "PC",
                icon: "rocket",
                path: "/fixed/computer",
                exact: true,
            }, {
                name: "移动设备",
                icon: "rocket",
                path: "/fixed/mobile",
            }]
        }, {
            name: "资产分析",
            icon: "medicine-box",
            path: "/assets",
            children: [{
                name: "账户分析",
                icon: "rocket",
                path: "/assets/account",
            }, {
                name: "资金分析",
                icon: "rocket",
                path: "/assets/fortune",
                exact: true,
            }, {
                name: "固定资产分析",
                icon: "rocket",
                path: "/assets/fixed",
            }]
        }, {
            name: "系统设置",
            icon: "setting",
            path: "/setting",
            children: [{
                name: "用户管理",
                icon: "rocket",
                path: "/setting/user",
                exact: true,
            }, {
                name: "角色管理",
                icon: "rocket",
                path: "/setting/role",
                exact: true,
            }, {
                name: "系统设置",
                icon: "rocket",
                path: "/setting/system",
                exact: true,
            }, {
                name: "系统日志",
                icon: "rocket",
                path: "/setting/log",
                exact: true,
            }]
        }]
    },
    "post /api/login" : (req, res) => {
        let result = {
          code : 0,
          msg : "成功！",
          data : {username : req.body.username}
        };
        setTimeout(() => res.send(result), 1000);
    },
    "post /api/logout" : (req, res) => {
        res.send({code : 0, data : "ok"});
    },
}
